#include "user_lib.h"
#include "util/types.h"
#include "util/string.h"

int main(int argc, char *argv[]) {

  int fd;

  fd = open("ramdisk0:/ramfile", O_RDWR|O_CREATE);
  close(fd);

  dir * dp = opendir("ramdisk0:/");

  struct dirent * d;

  while ( (d = readdir(dp)) != NULL ) {
    printu("dirent (inum, name): (%d, %s)\n", d->inum, d->name);
  }

  closedir(dp);

  exit(0);
  return 0;
}